function UI_Input(id,data){
	 var $this=this;
	 var jqueryObj = jQuery("#"+id);

	var t_name = jqueryObj.attr("name");
	var t_url = jqueryObj.attr("url"); 
	var t_valueField =jqueryObj.attr("valueField"); 
	var t_textField =jqueryObj.attr("textField"); 
	var t_panelHeight = jqueryObj.attr("panelHeight");
	var t_onChange= jqueryObj.attr("onChange");
	
	var checkData=function(data){
		if(!(data instanceof Array)){
			var arr =new Array();
			arr.push(data);
			return arr;
		}
		return data;
	};

	var combo_onChange=function(newValue, oldValue){
		if(t_onChange){
			eval(t_onChange);
		}
	};

	var param={
		name:t_name?t_name:'',
		data:checkData(data),
                valueField :t_valueField?t_valueField:'', 
                textField :t_textField?t_textField:'',
		panelHeight:t_panelHeight?t_panelHeight:'',
		onChange:function(newValue, oldValue){combo_onChange(newValue, oldValue);} 
	};

	jqueryObj.combobox(param);

	this.getValue=function(){
		return jqueryObj.combobox('getValue');
	};
	
	this.setValue=function(val){
		 jqueryObj.combobox('setValue',val);
	};

	this.clear=function(){
		 jqueryObj.combobox('clear');
	};

	this.loadData=function(data){
		 jqueryObj.combobox('loadData',checkData(data));
	};
}

